<!-- 
	联系客服
 
 -->
<template>
	<view class="cus-box">
		<cu-custom :isBack="true" bgColor="bg-fa">
			<block slot="content">联系客服</block>
		</cu-custom>
		<view class="textarea-box">
			<view class="title">
				当前客服忙碌中,可以先给客服留言哦~
			</view>
			<view class="label-box">
				<view class="label">
					电话:
				</view>
				<view class="input-box">
					<input type="text" class="inp" v-model="phone" :maxlength="11" placeholder="请输入电话号码"  />
				</view>
			</view>
			<view class="label-box">
				<view class="label">
					邮箱:
				</view>
				<view class="input-box">
					<input type="text" class="inp" v-model="mail" :maxlength="30" placeholder="请输入邮箱" />
				</view>
			</view>
			
			
			<view class="label-box" style="align-items: flex-start;">
				<view class="label">
					留言:
				</view>
				<view class="input-box">
					<textarea class="area" v-model="content" placeholder="请输入留言内容"/>
					<view class="area-length">
						{{content.length}}/140
					</view>
				</view>
			</view>
		</view>
		
		
		<view class="submit-btn">
			<u-button shape="circle" :ripple="true" :custom-style="{'background':'#FA436A','borderColor':'#FA436A','color':'#fff'}">发送</u-button>
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"customer",
		data(){
			return {
				phone:"",
				mail:"",
				content:""
			}
		},
		methods:{
			
		},
		onLoad() {
			
		}
	}
</script>


<style lang="scss" scoped>
	.cus-box{
		.textarea-box{
			width: calc(100% - 48rpx);
			background: #FFFFFF;
			padding:30rpx;
			margin-left: 24rpx;
			margin-top: 40rpx;
			border-radius: 10rpx 10rpx;
			line-height: 1.3;
			.title{
				color: #666666;
				font-size: 28rpx;
				padding-bottom: 20rpx;
			}
			.label-box{
				margin-top: 40rpx;
				display: flex;
				justify-content: flex-start;
				align-items: center;
				.label{
					color: #333333;
					font-size: 24rpx;
					width: 100rpx;
					text-align: right;
					padding-right: 16rpx;
				}
				.input-box{
					width: 460rpx;
					position: relative;
					.inp{
						height: 60rpx;
						border: 2rpx solid #DDDDDD;
						border-radius: 6rpx 6rpx;
						padding: 0 16rpx;
						font-size: 24rpx;
						color: #666666;
					}
					.area{
						width: 460rpx;
						height: 680rpx;
						border: 2rpx solid #DDDDDD;
						border-radius: 6rpx 6rpx;
						color: #666666;
						font-size: 24rpx;
						padding: 16rpx;
					}
					.area-length{
						position: absolute;
						bottom: 0;
						right: 0;
						color: #666666;
						padding: 0 16rpx 16rpx 0;
					}
				}
			}
		}
		.submit-btn{
			margin-top: 60rpx;
			padding: 0 24rpx 40rpx 24rpx;
		}
	}
</style>
